package com.ruoyi.deviceM.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备信息对象 user_device
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
public class UserDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private  Long deviceId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private  String deviceName;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private  String deviceCode;

    /** 产品ID */
    @Excel(name = "产品ID")
    private String productId;

    /** 设备状态（0-离线 1-在线） */
    @Excel(name = "设备状态", readConverterExp = "0=-离线,1=-在线")
    private String deviceStatus;

    /** IMEI号 */
    @Excel(name = "IMEI号")
    private static String imei;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private String model;

    /** 固件版本 */
    @Excel(name = "固件版本")
    private String firmwareVersion;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String location;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public  Long getDeviceId()
    {
        // return deviceId.toString();
        return deviceId;
    }

    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }

    public void setDeviceCode(String deviceCode) 
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode()
    {
        return deviceCode;
    }

    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }

    public void setDeviceStatus(String deviceStatus) 
    {
        this.deviceStatus = deviceStatus;
    }

    public String getDeviceStatus() 
    {
        return deviceStatus;
    }

    public void setImei(String imei) 
    {
        this.imei = imei;
    }

    public static String getImei()
    {
        return imei;
    }

    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }

    public void setFirmwareVersion(String firmwareVersion) 
    {
        this.firmwareVersion = firmwareVersion;
    }

    public String getFirmwareVersion() 
    {
        return firmwareVersion;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("deviceCode", getDeviceCode())
            .append("productId", getProductId())
            .append("deviceStatus", getDeviceStatus())
            .append("imei", getImei())
            .append("model", getModel())
            .append("firmwareVersion", getFirmwareVersion())
            .append("location", getLocation())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
